package com.aspose.cells;

class zcaf extends zcdb {
   private zazk a;
   private Workbook b;

   zcaf(zazk var1, Workbook var2) throws Exception {
      this.a = var1;
      this.b = var2;
      this.d = 416;
      this.a();
   }

   private void a() throws Exception {
      int var1 = 50 + 4 + (this.a.d == null ? 0 : this.a.d.length() * 2);
      this.c = new byte[var1];
      zbaa var2 = new zbaa(this.a);
      int var3 = var2.a(this.c);
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.f), 0, this.c, var3, 4);
      var3 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.g), 0, this.c, var3, 4);
      var3 += 4;
      this.c[var3] = (byte)(this.a.b == 0 ? 1 : 2);
      var3 += 2;
      int var4 = 0;
      if (this.a.c) {
         var4 |= 2;
      }

      if (this.a.h) {
         var4 |= 128;
      }

      if (this.a.i) {
         var4 |= 256;
      }

      var4 |= 2048;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, var3, 2);
      var3 += 2;
      System.arraycopy(this.a.e, 0, this.c, var3, 16);
      var3 += 16;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.l), 0, this.c, var3, 4);
      var3 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(this.a.j - this.a.l), 0, this.c, var3, 4);
      var3 += 4;
      zcch.a(this.c, var3, this.a.d);
   }
}
